<%@ Page language="c#" Inherits="LocalBoard.Web.manageClub" CodeFile="manageClub.aspx.cs" %>
<%@ Register TagPrefix="board" TagName="topNav" Src="UserControls/topNav.ascx" %>
<%@ Register TagPrefix="board" TagName="leftnavClub" Src="UserControls/leftnavClub.ascx" %>
<%@ Register TagPrefix="board" TagName="footer" Src="UserControls/footer.ascx" %>
<%@ Register TagPrefix="board" TagName="ClubInformation" Src="UserControls/ClubInformation.ascx" %>
<%@ Register TagPrefix="board" TagName="clubTopNav" Src="UserControls/clubTopNav.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>manageClub</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="stylesheets/board.css" rel="stylesheet">
  </HEAD>
	<body background="images/bg_blueFade.jpg">
		<form id="Form1" method="post" runat="server">

<board:topNav id="Topnav1" runat="server" />

<table cellSpacing="0" cellPadding="0" width="798" border="0" bgcolor="#ffffff">
  <tbody>
  <tr>
		<td colspan="7"><board:clubTopNav id="ClubTopNav1" runat="server" /></td>
	</tr>
  <tr>
    <td id="leftNav" valign="top" width="100" runat="server">
<board:leftnavClub id="leftnavClub" runat="server" />
		</td>
    <td bgcolor="#ffffff" width="2"><img src="images/space.gif" border="0" height="1" width="2"></td>
    <td bgcolor="#37a0ed" width="1"><img src="images/space.gif" border="0" height="1" width="1"></td>
    <td bgcolor="#ffffff" width="2"><img src="images/space.gif" border="0" height="1" width="3"></td>
    <td bgcolor="#37a0ed" width="1"><img src="images/space.gif" border="0" height="1" width="1"></td>
    <td bgcolor="#ffffff" width="2"><img src="images/space.gif" border="0" height="1" width="2"></td>
		<td id="body" width="689" runat="server">
<table cellSpacing="0" cellPadding="0" border="1">
	<tr>
		<td>
			<p><b>Basic Information</b></p>
			<table border="1" cellpadding="0" cellspacing="0">
			<tr>
				<td><board:ClubInformation id="clubInformation" fixClubType="true" fixedClubType="Public" mode="CHANGE" runat="server"></board:ClubInformation></td>
			</tr>
			</table>
			<p><b>Board Management</b></p>
			<table border="1" cellpadding="0" cellspacing="0">
			<tr>
				<td>Board List:<br>
				<asp:listbox id="boardList" Runat="server" AutoPostBack="True" onselectedindexchanged="BoardList_SelectedIndexChanged"></asp:listbox></td>
				<td rowspan="6">Role List For<br>Board Management:<br>
				<asp:listbox id="roleListForBoard" runat="server" /></td>
			</tr>
			<tr>
				<td>Name:<br>
				<asp:textbox id="boardNameTBox" Runat="server" /></td>
			</tr>
			<tr>
				<td>Manager:<br>
				<asp:TextBox ID="boardManager" Runat="server" ReadOnly="True" /><input id="boardManagerId" type="hidden" runat="server" NAME="boardManagerId"><br>
				<asp:Button ID="addBoardManagerBtn" Runat="server" Text="Add Selected User" onclick="addBoardManagerBtn_Click" />
				<asp:Button ID="deleteBoardManager" Runat="server" Text="Delete User" onclick="deleteBoardManager_Click" /></td>
			</tr>
			<tr>
				<td>Access Role:<br>
				<asp:TextBox ID="boardAccessRole" Runat="server" ReadOnly="True" /><input id="boardAccessRoleId" type="hidden" runat="server" NAME="boardAccessRoleId"><br>
				<asp:Button ID="addBoardAccessRoleBtn" Runat="server" Text="Add Selected Role" onclick="addBoardAccessRoleBtn_Click" />
				<asp:Button ID="deleteBoardAccessRole" Runat="server" Text="Delete Access Role" onclick="deleteBoardAccessRole_Click" /></td>
			</tr>
			<tr>
				<td>Post Role:<br>
				<asp:TextBox ID="boardPostRole" Runat="server" ReadOnly="True" /><input id="boardPostRoleId" type="hidden" runat="server" NAME="boardPostRoleId">
				<asp:Button ID="addBoardPostRoleBtn" Runat="server" Text="Add Selected Role" onclick="addBoardPostRoleBtn_Click" />
				<asp:Button ID="deleteBoardPostRole" Runat="server" Text="Delete Post Role" onclick="deleteBoardPostRole_Click" /></td>
			</tr>
			<tr>
				<td><asp:Button id="addBoardBtn" Text="Create Board" runat="server" onclick="addBoardBtn_Click" />&nbsp;&nbsp;<asp:Button id="changeBoard" Text="Change Board" runat="server" onclick="changeBoard_Click" />&nbsp;&nbsp;<asp:Button id="deleteBoard" Text="Delete Board" runat="server" onclick="deleteBoard_Click" /></td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
				<p><b>Club Role Management</b></p>
			<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td>Club Role List:<br>
				<asp:listbox id="roleList" runat="server" /></td>
			</tr>
			<tr>
				<td><asp:Button id="deleteRole" Text="Delete Selected Role" runat="server" onclick="deleteRole_Click" /></td>
			</tr>
			<tr>
				<td>Name: <asp:TextBox id="newRole" runat="server" /></td>
			</tr>
			<tr>
				<td><asp:Button id="addRole" Text="Create Role" runat="server" onclick="addRole_Click" />&nbsp;&nbsp;</td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<p><b>Club User Management</b></p>
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td valign="top">Role List For<br>User Management:<br>
				<asp:listbox id="roleListForUser" runat="server" /></td>
			<td valign="top">
				<p>&nbsp;</p>
				<p><asp:Button id="addRoleToUser" Text="-->" runat="server" onclick="addRoleToUser_Click" /></p>
				<p><asp:Button id="deleteRoleFromUser" Text="<--" runat="server" onclick="deleteRoleFromUser_Click" /></p>
			</td>
			<td valign="top">
				<p>Current User's<br>Role List:<br>
					<asp:listbox id="userRoleList" runat="server"></asp:listbox></p>
			</td>
			<td valign="top">
				<p>User List:<br>
					<asp:listbox id="userList" Height="100" runat="server" AutoPostBack="True" onselectedindexchanged="userList_SelectedIndexChanged"></asp:listbox></p>
			</td>
		</tr>
		<tr>
			<td colspan="4"><asp:Button id="updateUser" Text="Update User" runat="server" onclick="updateUser_Click" /></td>
		</tr>
		</table>
		</td>
	</tr>
</table>
		</td>
	</tr>
	</tbody>
</table>

<board:footer id="footer" runat="server" />

		</form>
	</body>
</HTML>
